import CesiumViewerSingleton from "@/utils/CesiumViewerSingleton";
import { Viewer } from "@jodvf/cesium-3d";

export function useCesiumViewer(containerId: string): Viewer {
  const viewer = CesiumViewerSingleton.getInstance().getViewer(containerId);
  return viewer;
}
export async function useCesiumViewerDestroy() {
  await CesiumViewerSingleton.getInstance().destroyViewer();
}
